<?php
echo "<pre>";
print_r($_POST);
//图片接收
// if(isset($_FILES['pic'])) 
if($_FILES['pic']['error'] === UPLOAD_ERR_OK){
		// exit('上传失败!');
	
	$save = './image/' .$_FILES['pic'] . ['name'];
	if(move_uploaded_file($_FILES['pic']['tmp_name'], $save)) {
		echo '上传且移动成功';
	}else{
	echo "移动失败!";
}
}else{
    echo "上传失败,无法将文件保存到指定位置! 编号:".$_FILES['pic']['error'];
}